package com.itqf.controller;

import com.itqf.service.PopOrderService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/7
 * @Time: 下午4:55
 */
@RestController
public class OrderController {

    @Resource
    private PopOrderService popOrderService;
    @RequestMapping("/cancel/{oId}/{e}")
    public int    cancel(@PathVariable("oId") long oId,@PathVariable("e") int e){

       return popOrderService.cancelOrder(oId,e);
    }

}
